package com.zxx.pattern.facadePattern.facade2;

/**
 * @author zxx on 2021/7/21
 */
public class MobilePhone {
    Phone phone = new PhoneImpl();
    Camera camera = new SamsungCamera();

    public void dail(){
        phone.dail();
    }

    public void videoChat(){
        System.out.println("---视频聊天接通中");
        camera.open();
        phone.dail();
    }

    public void hangup() {
        phone.hangup();
    }

    public void takePicture() {
        camera.open();
        camera.takePicture();
    }

    public void closeCamera() {
        camera.close();
    }

}
